import message from 'ant-design-vue/es/message/index.js';
import vueGlobal from '@gis/lib/vueGlobal.js';

import 'ant-design-vue/es/message/style';

message.config({
  top: `25%`,
  duration: 3,
  maxCount: 1,
});

message.install = function (app) {
  // app.config.globalProperties.$message = message;
  vueGlobal.set('$message', message);
};

export default message;
